package com.tn.user;

import com.databstech.apis.annotation.application.DatabstechCloudBoot;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * EnableDiscoveryClient  注册发现
 * EnableFeignClients     rpc客户端
 */
@DatabstechCloudBoot
public class ServerUserApplication {
    @LoadBalanced
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(ServerUserApplication.class, args);
    }


}
